(0) Obligation:

Clauses:

normal(F, N) :- ','(rewrite(F, F1), normal(F1, N)).
normal(F, F).
rewrite(op(op(A, B), C), op(A, op(B, C))).
rewrite(op(A, op(B, C)), op(A, L)) :- rewrite(op(B, C), L).

Query: normal(g,a)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

rewriteA(op(T67, T68), T69, op(T67, op(T68, T69))).
rewriteA(T76, op(T77, T78), op(T76, X90)) :- rewriteA(T77, T78, X90).
normalB(op(op(T20, T21), T22), T7) :- normalB(op(T20, op(T21, T22)), T7).
normalB(op(T39, op(T40, T41)), T7) :- rewriteA(T40, T41, X48).
normalB(op(T39, op(T40, T41)), T7) :- ','(rewriteA(T40, T41, T48), normalB(op(T39, T48), T7)).
normalB(T90, T90).

Query: normalB(g,a)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
normalB_in: (b,f)
rewriteA_in: (b,b,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

normalB_in_ga(op(op(T20, T21), T22), T7) → U2_ga(T20, T21, T22, T7, normalB_in_ga(op(T20, op(T21, T22)), T7))
normalB_in_ga(op(T39, op(T40, T41)), T7) → U3_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, X48))
rewriteA_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteA_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteA_in_gga(T76, op(T77, T78), op(T76, X90)) → U1_gga(T76, T77, T78, X90, rewriteA_in_gga(T77, T78, X90))
U1_gga(T76, T77, T78, X90, rewriteA_out_gga(T77, T78, X90)) → rewriteA_out_gga(T76, op(T77, T78), op(T76, X90))
U3_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, X48)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
normalB_in_ga(op(T39, op(T40, T41)), T7) → U4_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → U5_ga(T39, T40, T41, T7, normalB_in_ga(op(T39, T48), T7))
normalB_in_ga(T90, T90) → normalB_out_ga(T90, T90)
U5_ga(T39, T40, T41, T7, normalB_out_ga(op(T39, T48), T7)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
U2_ga(T20, T21, T22, T7, normalB_out_ga(op(T20, op(T21, T22)), T7)) → normalB_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalB_in_ga(x1, x2)  =  normalB_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
rewriteA_in_gga(x1, x2, x3)  =  rewriteA_in_gga(x1, x2)
rewriteA_out_gga(x1, x2, x3)  =  rewriteA_out_gga(x3)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x5)
normalB_out_ga(x1, x2)  =  normalB_out_ga
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

normalB_in_ga(op(op(T20, T21), T22), T7) → U2_ga(T20, T21, T22, T7, normalB_in_ga(op(T20, op(T21, T22)), T7))
normalB_in_ga(op(T39, op(T40, T41)), T7) → U3_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, X48))
rewriteA_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteA_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteA_in_gga(T76, op(T77, T78), op(T76, X90)) → U1_gga(T76, T77, T78, X90, rewriteA_in_gga(T77, T78, X90))
U1_gga(T76, T77, T78, X90, rewriteA_out_gga(T77, T78, X90)) → rewriteA_out_gga(T76, op(T77, T78), op(T76, X90))
U3_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, X48)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
normalB_in_ga(op(T39, op(T40, T41)), T7) → U4_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → U5_ga(T39, T40, T41, T7, normalB_in_ga(op(T39, T48), T7))
normalB_in_ga(T90, T90) → normalB_out_ga(T90, T90)
U5_ga(T39, T40, T41, T7, normalB_out_ga(op(T39, T48), T7)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
U2_ga(T20, T21, T22, T7, normalB_out_ga(op(T20, op(T21, T22)), T7)) → normalB_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalB_in_ga(x1, x2)  =  normalB_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
rewriteA_in_gga(x1, x2, x3)  =  rewriteA_in_gga(x1, x2)
rewriteA_out_gga(x1, x2, x3)  =  rewriteA_out_gga(x3)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x5)
normalB_out_ga(x1, x2)  =  normalB_out_ga
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

NORMALB_IN_GA(op(op(T20, T21), T22), T7) → U2_GA(T20, T21, T22, T7, normalB_in_ga(op(T20, op(T21, T22)), T7))
NORMALB_IN_GA(op(op(T20, T21), T22), T7) → NORMALB_IN_GA(op(T20, op(T21, T22)), T7)
NORMALB_IN_GA(op(T39, op(T40, T41)), T7) → U3_GA(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, X48))
NORMALB_IN_GA(op(T39, op(T40, T41)), T7) → REWRITEA_IN_GGA(T40, T41, X48)
REWRITEA_IN_GGA(T76, op(T77, T78), op(T76, X90)) → U1_GGA(T76, T77, T78, X90, rewriteA_in_gga(T77, T78, X90))
REWRITEA_IN_GGA(T76, op(T77, T78), op(T76, X90)) → REWRITEA_IN_GGA(T77, T78, X90)
NORMALB_IN_GA(op(T39, op(T40, T41)), T7) → U4_GA(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_GA(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → U5_GA(T39, T40, T41, T7, normalB_in_ga(op(T39, T48), T7))
U4_GA(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → NORMALB_IN_GA(op(T39, T48), T7)

The TRS R consists of the following rules:

normalB_in_ga(op(op(T20, T21), T22), T7) → U2_ga(T20, T21, T22, T7, normalB_in_ga(op(T20, op(T21, T22)), T7))
normalB_in_ga(op(T39, op(T40, T41)), T7) → U3_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, X48))
rewriteA_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteA_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteA_in_gga(T76, op(T77, T78), op(T76, X90)) → U1_gga(T76, T77, T78, X90, rewriteA_in_gga(T77, T78, X90))
U1_gga(T76, T77, T78, X90, rewriteA_out_gga(T77, T78, X90)) → rewriteA_out_gga(T76, op(T77, T78), op(T76, X90))
U3_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, X48)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
normalB_in_ga(op(T39, op(T40, T41)), T7) → U4_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → U5_ga(T39, T40, T41, T7, normalB_in_ga(op(T39, T48), T7))
normalB_in_ga(T90, T90) → normalB_out_ga(T90, T90)
U5_ga(T39, T40, T41, T7, normalB_out_ga(op(T39, T48), T7)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
U2_ga(T20, T21, T22, T7, normalB_out_ga(op(T20, op(T21, T22)), T7)) → normalB_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalB_in_ga(x1, x2)  =  normalB_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
rewriteA_in_gga(x1, x2, x3)  =  rewriteA_in_gga(x1, x2)
rewriteA_out_gga(x1, x2, x3)  =  rewriteA_out_gga(x3)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x5)
normalB_out_ga(x1, x2)  =  normalB_out_ga
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
NORMALB_IN_GA(x1, x2)  =  NORMALB_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
REWRITEA_IN_GGA(x1, x2, x3)  =  REWRITEA_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3, x4, x5)  =  U1_GGA(x1, x5)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x1, x5)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

NORMALB_IN_GA(op(op(T20, T21), T22), T7) → U2_GA(T20, T21, T22, T7, normalB_in_ga(op(T20, op(T21, T22)), T7))
NORMALB_IN_GA(op(op(T20, T21), T22), T7) → NORMALB_IN_GA(op(T20, op(T21, T22)), T7)
NORMALB_IN_GA(op(T39, op(T40, T41)), T7) → U3_GA(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, X48))
NORMALB_IN_GA(op(T39, op(T40, T41)), T7) → REWRITEA_IN_GGA(T40, T41, X48)
REWRITEA_IN_GGA(T76, op(T77, T78), op(T76, X90)) → U1_GGA(T76, T77, T78, X90, rewriteA_in_gga(T77, T78, X90))
REWRITEA_IN_GGA(T76, op(T77, T78), op(T76, X90)) → REWRITEA_IN_GGA(T77, T78, X90)
NORMALB_IN_GA(op(T39, op(T40, T41)), T7) → U4_GA(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_GA(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → U5_GA(T39, T40, T41, T7, normalB_in_ga(op(T39, T48), T7))
U4_GA(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → NORMALB_IN_GA(op(T39, T48), T7)

The TRS R consists of the following rules:

normalB_in_ga(op(op(T20, T21), T22), T7) → U2_ga(T20, T21, T22, T7, normalB_in_ga(op(T20, op(T21, T22)), T7))
normalB_in_ga(op(T39, op(T40, T41)), T7) → U3_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, X48))
rewriteA_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteA_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteA_in_gga(T76, op(T77, T78), op(T76, X90)) → U1_gga(T76, T77, T78, X90, rewriteA_in_gga(T77, T78, X90))
U1_gga(T76, T77, T78, X90, rewriteA_out_gga(T77, T78, X90)) → rewriteA_out_gga(T76, op(T77, T78), op(T76, X90))
U3_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, X48)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
normalB_in_ga(op(T39, op(T40, T41)), T7) → U4_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → U5_ga(T39, T40, T41, T7, normalB_in_ga(op(T39, T48), T7))
normalB_in_ga(T90, T90) → normalB_out_ga(T90, T90)
U5_ga(T39, T40, T41, T7, normalB_out_ga(op(T39, T48), T7)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
U2_ga(T20, T21, T22, T7, normalB_out_ga(op(T20, op(T21, T22)), T7)) → normalB_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalB_in_ga(x1, x2)  =  normalB_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
rewriteA_in_gga(x1, x2, x3)  =  rewriteA_in_gga(x1, x2)
rewriteA_out_gga(x1, x2, x3)  =  rewriteA_out_gga(x3)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x5)
normalB_out_ga(x1, x2)  =  normalB_out_ga
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
NORMALB_IN_GA(x1, x2)  =  NORMALB_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x5)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
REWRITEA_IN_GGA(x1, x2, x3)  =  REWRITEA_IN_GGA(x1, x2)
U1_GGA(x1, x2, x3, x4, x5)  =  U1_GGA(x1, x5)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x1, x5)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 2 SCCs with 5 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REWRITEA_IN_GGA(T76, op(T77, T78), op(T76, X90)) → REWRITEA_IN_GGA(T77, T78, X90)

The TRS R consists of the following rules:

normalB_in_ga(op(op(T20, T21), T22), T7) → U2_ga(T20, T21, T22, T7, normalB_in_ga(op(T20, op(T21, T22)), T7))
normalB_in_ga(op(T39, op(T40, T41)), T7) → U3_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, X48))
rewriteA_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteA_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteA_in_gga(T76, op(T77, T78), op(T76, X90)) → U1_gga(T76, T77, T78, X90, rewriteA_in_gga(T77, T78, X90))
U1_gga(T76, T77, T78, X90, rewriteA_out_gga(T77, T78, X90)) → rewriteA_out_gga(T76, op(T77, T78), op(T76, X90))
U3_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, X48)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
normalB_in_ga(op(T39, op(T40, T41)), T7) → U4_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → U5_ga(T39, T40, T41, T7, normalB_in_ga(op(T39, T48), T7))
normalB_in_ga(T90, T90) → normalB_out_ga(T90, T90)
U5_ga(T39, T40, T41, T7, normalB_out_ga(op(T39, T48), T7)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
U2_ga(T20, T21, T22, T7, normalB_out_ga(op(T20, op(T21, T22)), T7)) → normalB_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalB_in_ga(x1, x2)  =  normalB_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
rewriteA_in_gga(x1, x2, x3)  =  rewriteA_in_gga(x1, x2)
rewriteA_out_gga(x1, x2, x3)  =  rewriteA_out_gga(x3)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x5)
normalB_out_ga(x1, x2)  =  normalB_out_ga
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
REWRITEA_IN_GGA(x1, x2, x3)  =  REWRITEA_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REWRITEA_IN_GGA(T76, op(T77, T78), op(T76, X90)) → REWRITEA_IN_GGA(T77, T78, X90)

R is empty.
The argument filtering Pi contains the following mapping:
op(x1, x2)  =  op(x1, x2)
REWRITEA_IN_GGA(x1, x2, x3)  =  REWRITEA_IN_GGA(x1, x2)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

REWRITEA_IN_GGA(T76, op(T77, T78)) → REWRITEA_IN_GGA(T77, T78)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • REWRITEA_IN_GGA(T76, op(T77, T78)) → REWRITEA_IN_GGA(T77, T78)
    The graph contains the following edges 2 > 1, 2 > 2

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

NORMALB_IN_GA(op(T39, op(T40, T41)), T7) → U4_GA(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_GA(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → NORMALB_IN_GA(op(T39, T48), T7)
NORMALB_IN_GA(op(op(T20, T21), T22), T7) → NORMALB_IN_GA(op(T20, op(T21, T22)), T7)

The TRS R consists of the following rules:

normalB_in_ga(op(op(T20, T21), T22), T7) → U2_ga(T20, T21, T22, T7, normalB_in_ga(op(T20, op(T21, T22)), T7))
normalB_in_ga(op(T39, op(T40, T41)), T7) → U3_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, X48))
rewriteA_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteA_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteA_in_gga(T76, op(T77, T78), op(T76, X90)) → U1_gga(T76, T77, T78, X90, rewriteA_in_gga(T77, T78, X90))
U1_gga(T76, T77, T78, X90, rewriteA_out_gga(T77, T78, X90)) → rewriteA_out_gga(T76, op(T77, T78), op(T76, X90))
U3_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, X48)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
normalB_in_ga(op(T39, op(T40, T41)), T7) → U4_ga(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_ga(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → U5_ga(T39, T40, T41, T7, normalB_in_ga(op(T39, T48), T7))
normalB_in_ga(T90, T90) → normalB_out_ga(T90, T90)
U5_ga(T39, T40, T41, T7, normalB_out_ga(op(T39, T48), T7)) → normalB_out_ga(op(T39, op(T40, T41)), T7)
U2_ga(T20, T21, T22, T7, normalB_out_ga(op(T20, op(T21, T22)), T7)) → normalB_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalB_in_ga(x1, x2)  =  normalB_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x5)
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
rewriteA_in_gga(x1, x2, x3)  =  rewriteA_in_gga(x1, x2)
rewriteA_out_gga(x1, x2, x3)  =  rewriteA_out_gga(x3)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x5)
normalB_out_ga(x1, x2)  =  normalB_out_ga
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x1, x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
NORMALB_IN_GA(x1, x2)  =  NORMALB_IN_GA(x1)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x1, x5)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

NORMALB_IN_GA(op(T39, op(T40, T41)), T7) → U4_GA(T39, T40, T41, T7, rewriteA_in_gga(T40, T41, T48))
U4_GA(T39, T40, T41, T7, rewriteA_out_gga(T40, T41, T48)) → NORMALB_IN_GA(op(T39, T48), T7)
NORMALB_IN_GA(op(op(T20, T21), T22), T7) → NORMALB_IN_GA(op(T20, op(T21, T22)), T7)

The TRS R consists of the following rules:

rewriteA_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteA_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteA_in_gga(T76, op(T77, T78), op(T76, X90)) → U1_gga(T76, T77, T78, X90, rewriteA_in_gga(T77, T78, X90))
U1_gga(T76, T77, T78, X90, rewriteA_out_gga(T77, T78, X90)) → rewriteA_out_gga(T76, op(T77, T78), op(T76, X90))

The argument filtering Pi contains the following mapping:
op(x1, x2)  =  op(x1, x2)
rewriteA_in_gga(x1, x2, x3)  =  rewriteA_in_gga(x1, x2)
rewriteA_out_gga(x1, x2, x3)  =  rewriteA_out_gga(x3)
U1_gga(x1, x2, x3, x4, x5)  =  U1_gga(x1, x5)
NORMALB_IN_GA(x1, x2)  =  NORMALB_IN_GA(x1)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x1, x5)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

NORMALB_IN_GA(op(T39, op(T40, T41))) → U4_GA(T39, rewriteA_in_gga(T40, T41))
U4_GA(T39, rewriteA_out_gga(T48)) → NORMALB_IN_GA(op(T39, T48))
NORMALB_IN_GA(op(op(T20, T21), T22)) → NORMALB_IN_GA(op(T20, op(T21, T22)))

The TRS R consists of the following rules:

rewriteA_in_gga(op(T67, T68), T69) → rewriteA_out_gga(op(T67, op(T68, T69)))
rewriteA_in_gga(T76, op(T77, T78)) → U1_gga(T76, rewriteA_in_gga(T77, T78))
U1_gga(T76, rewriteA_out_gga(X90)) → rewriteA_out_gga(op(T76, X90))

The set Q consists of the following terms:

rewriteA_in_gga(x0, x1)
U1_gga(x0, x1)

We have to consider all (P,Q,R)-chains.

(21) MRRProof (EQUIVALENT transformation)

By using the rule removal processor [LPAR04] with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.
Strictly oriented dependency pairs:

NORMALB_IN_GA(op(T39, op(T40, T41))) → U4_GA(T39, rewriteA_in_gga(T40, T41))
NORMALB_IN_GA(op(op(T20, T21), T22)) → NORMALB_IN_GA(op(T20, op(T21, T22)))


Used ordering: Polynomial interpretation [POLO]:

POL(NORMALB_IN_GA(x1)) = x1   
POL(U1_gga(x1, x2)) = 2 + 2·x1 + x2   
POL(U4_GA(x1, x2)) = 2 + 2·x1 + x2   
POL(op(x1, x2)) = 2 + 2·x1 + x2   
POL(rewriteA_in_gga(x1, x2)) = 2·x1 + x2   
POL(rewriteA_out_gga(x1)) = x1   

(22) Obligation:

Q DP problem:
The TRS P consists of the following rules:

U4_GA(T39, rewriteA_out_gga(T48)) → NORMALB_IN_GA(op(T39, T48))

The TRS R consists of the following rules:

rewriteA_in_gga(op(T67, T68), T69) → rewriteA_out_gga(op(T67, op(T68, T69)))
rewriteA_in_gga(T76, op(T77, T78)) → U1_gga(T76, rewriteA_in_gga(T77, T78))
U1_gga(T76, rewriteA_out_gga(X90)) → rewriteA_out_gga(op(T76, X90))

The set Q consists of the following terms:

rewriteA_in_gga(x0, x1)
U1_gga(x0, x1)

We have to consider all (P,Q,R)-chains.

(23) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 1 less node.

(24) TRUE